fix POST commands handling