refactoring rc.local