refacto multi modules app