split code to two projects logic