[fix] add debug and standalone mode