refactor: avoid direct process usage