use system instead of spawn