adding support for scan operations