cancel init function and replace with loader