restore status as levi module
fix status test
make metrics can work under osx