add core file as well as begin to define json calls on the rest api