fixed pattern
added packgram dir to _sources and inherited templates from it