updated to use stackbrew ; updated to support fig