modified to use fablib