James: add a check if build was successful