parse library (not yet tested)