added test script
took away execvp compltly out of code