move usage parsing to sandbox