added while loop since we are starting from rc.local