modify lval struct to handle user defined functions