modifing api.txt file