fix parameter mapping
improve error handling for post requests
pimp logging output
set default value for duration