fixing up errors preventing the build