better check for paths