simplify main
fix test