minor cleanup of get req func