fixed LocalHandler with promises
handlers get their own file