add little error check in build file