basic eval skeleton function