enum flags is made as int and typedef int flags added