fork from mobgrab https://sites.google.com/site/columscode/home/movgrab