adds more handlers to machine directive