start implementing api spec handler