added tab insertion support