added basic method vardecl support