rename api/ -> lib/