refactor stats, revert signature parser to the core
work on metrics collection, saving directly if needed, more metrics exposed