got struct keys in error messages working