fix imports + make api in a blueprint