tab handling improved

fixed issue #16