initial commit, rendering functions, etc