fixed bug with auto call, added 3d plotting