updates to seldon for masking