fixed logger infinite regression problem and added basic logging to archive