.g file cleanup