prepare for raw templates, migration for ajax