basic request handler and basic json definitions