added some things for gui