added flag for remote control