updated script for required library