fix file generation
fix single event template a bit