toString in autogenerated
some log fixing
populating username in context