add check for paths