just noticed: I think that this even sets a completely global `entryPath` because of the missing var...