fix relative paths; remove unnecessary library calls