replace system for exec