added "magic" parameter to send data as array