more gem file stuff
fixed gem removal regression