fix some bug and add a simple Template