reduce gem size + make it build without errors