added warning to restart function. cleaned up restart cli arg handling