modified gem filewq