fix syntax and file location dectection