script for fat lib