add test functions to bypass ajax call