add "before" actions
add more tests