using gint instead of int (insane API, but ok.)