remove scope setup to lib