changed the console log to only catch non-messages