set from req functionality