handle classes in foreman module for v2 starting from 1.4