added scala trace code