fix #73 by setting specific properties before Nightcode init