add logging and a rescue