added upload_to_stage method;