add residfp support