moved avatar generation code to a place where it's always executed
fixed engine, charser and collation