add debug as dependency and support more know features