for #1200 - brakeman is still mad, but this solution seems better