shmfromfile works better