added dir and trace methods to the logger, put chai inclusion on server into try catch to fail silently