fixed #1: support dynamic values for resources