fix power configuration when user re login and add debug environment compatible code