change code in tutorial to read system lib