switches console to select, fixed my own mistake in passing the gid