frae reimplemented
add tests for frae_