added buffered execution option