cleaning up jps.lua