fixed some small bugs

added M1 testscript