added horizontal scan
added support for tag, added vertical scan