accept numeric value for mongodb port in config file