add some local code