kinda forked from hully's media explorer and modified to suit kaycee's requirements