started to rewritw api for monitoring page