add support for static interface
Merge pull request #6 from xinwu/master

add support for static interface