lastest changes to add console logging