read resource from properties