possible gcm fix and sql exception fix