fix signal errors and remove gui dependency