bost bind refactoring