try better logic for finding a running resource