fixes to get_colid, should work now