move function to plugin; customize statusline