adjusted how Triggers class handles class mapping