serious refactoring - added south introspection and license