caught bug in public.py