the main function
add logging