porting old code to work with boost