fixes #7
better template
recenter