replaced Moose with Moo
added some debugging support
improved error handling
added remote discovery