refactors to eliminate browser from workflow