updates files, added register support