add bitmap data structure, update pull_agent.