adding new resource type to handle save/update
moving to single file