fix path, fix flags