uploads fix from mschuerig