updates to use logging capabilities instead of printing