moving things to the library
calling GUI from serials thread...