use strtypes in resource.py