fix pid file management
add module arguments