added init script for msghook