actually read the base package list
fix bug in json output