add error management
add source map support