make some updates to fjtools