back-end json and factories implemented