local must exist or throw error
compile with locals