moved classes from runtime.api to util