update to use fatjs