updated the deprecated crhome extension functions; hopefully fixed bug