new version, due to tested replace template, replace form, on request hooks