ip istead id in setflag method
ip instead id in setflag method
added info about flags