adding more funcionality to api