move stats template
add in_amin to be used in templates