replaced first() with head()
changed to saner defaults for logging