fixed the directory names for the api. fix #136