registerhelper now with variable template