refactored build-runtime task