fixed promises error
improved messages for better debugging #40