hack to work for amazon ami