don't need errnomap after all
add then/promise dep
move f4js handlers to lib/