fixed bug in resource decoration
bump version to 0.4.2