use daemon(3) to go into background