added init and stop