ui-lib conversion and perl niceness