fixed some bugs and facebook.fpi
removed some stupid debug stmts