making more simpler api