docs and set immediate

update docs, use native set immediate if available