fixed bugs and implemented FBMStore