selecting factory scripts correctly ..
fixing syntax error
improving module container