Add reflash and some syntax fix