flexible resource allocation