fix to work with sef