adding some stuff for scala