move skeleton creation into subfunction
remove bitmask from QL
add quality to L2_ScPot
simplify code