added return statements so get/post can function transparently