better error reporting
test logger and fix cp when empty source
add hook-before