uploadmanager nearly working