fp function and further config