refactor and add require resource filter
bump to 0.1.2