fixed runLibFunction declaration