adapt loader for device