functions called in wrong order on installer