distribute code between modules