remove init and add preferences