misc public code