fixed io expressions to check for function in module first