fixed build issues for deploy