update to latest refinery changes