layer_count is not available here?