added no-daemon option