refactor to pull out fl_log into its own library