update function skeleton at top for new flags