use system instead of exec