fixing resource dependancies