support remote and normal mode