canBuild now works. added exception handling