refactoring for clarity, front-end hooking up to local fb