added ARC support

This code does not good enough. it's not real init and does not have any sense.