added fix for jpt function (i had hard coded in an index refernce) Also added dependency list function (needs testing)