refactor to fp docs