moved code out of end2endpages folder