dinamical loading of scripts and templates before starting module