added remove to append to local and callign local on downloadoffline