begun work on lua api functions (map access)