fix relative paths and errors