[src] new structure; add methods for detect
[src] just demo