some fixes for early start with upstart