added first run check and EnableSendFile fix