document require and default