changes to get rendering working