improve init scripts