adding magtek library