chore: route handling for lib