support for yiic, fixes #2