added couple of api endpoints