clean up init file, tho it still has problems
refactor to use kibana-daemon