pure code for object scripting