start working on checking interval
modified libs, add cli