implements POST (not complete)
(minor) removes some broken code