added update resource
fixed syntax error
Merge pull request #1 from phoolish/depends

added update resource