added entry prompt and fixed file exist