set work directory per task
better errors; add promises
add configure logging text
remove when