add compat functions