a simple impl of links/loading templates