improved shell output
fix core test