refactor Runtime.Base