add two api methods