add automatically open file