fix rackup and library API