add helpers for stars
make one function, with errors keyword
add some unit tests