download manager & fix for rc_buffer realloc