updated gemlock to include protected_attribute