add background mode for dispatching commands