Feature/avec logger

a lot of the diff comes from a beautify.. better done sooner than later.