seperated library api and home api