added some utiity func
Merge branch 'master' of https://github.com/markthor/ISP