Fixed up regexp function promotion and added mget method