add rough sub frame support
review frame pattern identifying logic using regular expressions
unify cache file path generation