adding logging to make sure everything is set