restructure of record system + login and track api