add a snippet for your self
fix minor bugs