move unrelated functions outside of f4f class