cleaned up added logging dynamic mixing