removing unnecessary require and debugging monkey patches