make things more nice and using a generated json file