added AS keyword, fixes #3