add simple resource system