clean docstrings
refactor debug with onaction
rl -> fn