fixed directory privilege bug and service status bug