refined
added heroku function
added some firebase api