implemented minimal requirements needed for working R package