replace deprecated exists? with exist?