apply Apache 2 license
fix typo