extract is resource helper