adding FB api , modularize util functions across logical files