adding initial logic for wp uploads