fixed availability page. set up api file.