adding better logging to require