change this to a bitflag