update to make it compatible with SMW