change return type of attachToRuntime to void