fixed issue with returning state variable

I'd forgotten how to return POST properly, my bad. Now I can actually
get on with the useful stuff.