first commit of the top-level app logic