Programmatically Placing Tables

this is just the setup to hook the proxy replace code, from here it should be pretty straight forward finishing up the code. feel free to finish it yourself, if not i'll be back on it in a few days.