some runtime cleanups