refactor: client scripts