added machine check and create machine