add run and delete function for qs