add SDL support