added some functions, GUI needs them