add ref_class check.
Merge pull request #82 from dumganhar/iss4058-ref

add ref_class check.