init and finalize prototype is working