improved the api and fixed a big with the latest child process