progress on api
the data is lost even if referenced after the constructor it seems
pointers
using templates