better api and record Manager