check paths first