add logging functionality and adopt http command parameters