added basic stuff. working. template has a bug. fix it