move public.h file to public.h.template file