removed strscan dependency