Slxu fix and improve deployment

this seems dangerous, any reason not to manually construct the array as you did above?