added dynamic MAC
Merged dynamic MAC and stuff so it doesnt hang on print