working without GUI