changed method that determins whether or not sm is available