updated application with reset functions
add logging