moved defineProperties to clean build only