added idToRuntime function