removed unnecessary functions in build
added options for staging server