The core lib part of scanjs tool