starting to pharse stuff
added better logging