replaced user directory with ~