code cleanup, more friendly for nginx cookbook