the core part of dotjs lib