initial version of init script, needs work