added upload and delete methods