[fix] inherit should be optional