cleanup and document Get and Put flags