accept: prepare optional flags argument to accept() wrappers