add for init.d support