moved monkey patches to bottom