initial integration with MTJ (not working yet)