better error handing - case of POST with arrays
better debugging and exceptions handling