add support for single item templates. v 0.2