fixing issues with building