renamed from and to, simplified parse post data