remove require statements without breaking scope