added flags to polygon admin map / refactored some flag code