Resource inheritance support

fixes #52