convert to Pagoda-Chef pattern & add license