library porting problem