started a star implemetation. various improvements