made io_lptype struct (similar to tw_lptype)
put all lp type functions into global array