rough script for dependencies
refine script code