modified build to support compile