added inject core[Type] and implemented toString