more optimizations
removed use of sed
removed sed for dependencies