add: function to parse contrats and all modules dependencies