flags implemented