add elseif extension

resolves #48