fixing upload problems