finally got at least the basic template working. jesus.