updated to work in fatcow