ported to fltk, seperated cl files