+ added logging information
+ changed createOrAppendFunction