basic outline. Adding simple php soon.