switched to resource framework