only append custom jsons if they have been provided
refactoring