setup flag
basic resource flag, need to add another function
flag stuff
flag basic function is there
fix conflict