adding utililty.php with some simple functions to process collection+json request data