moving out scripts and templates