make errors a little more descriptive
add logging feature; better config parsing