bash and json cleanup