Debug and fixes for gCore