cleaning useless stuff, and adding required resources