basic ajax and pep infrastructure