maybe like this (nothing tested)
add some simple tests
ll tests good enough i guess