restored some mechanics. using resources