changes to avoid possibility of multiple fence creation