include module dir in compilation
log the name of the module in error