split local variables ("frame") functionality in eval into separate file