change template resolution to statics. this fixes #6