bfs
added resource refresh