final version, seems to be ok with NULL valies
better, but still work to be done
stille ned path to fonts on solaris