updated (12/5/13) - use system() to get programs to run automatically