updated for fbc
added code for renameSIdRefs functions