improved support for large uploads