added POST handling and chunk limts