set auto change dir and add number line