added --attach-daemon2