split public and src code