first part of detection algo working
second part of auto property detection implemented, containes not working parts.